home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 44 / Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso / -serious- / wb / meautostart / install < prev    next >
Text File  |  1999-07-12  |  4KB  |  240 lines

  1. ;**************************************************
  2. ;
  3. ; Installer-Script for MEAutoStart 1.5
  4. ;    Autor    : Malte Eller
  5. ;    Version    : 1.4
  6. ;    Datum    : 21.05.1999
  7. ;
  8. ;    $VER: Install 1.4 (21.05.1999)
  9. ;
  10. ;**************************************************
  11.  
  12. (set @user-level 1)
  13.  
  14. (if (= @language "deutsch")
  15.  (
  16.   (set #bad-kick (cat "Leider wird OS3.0 oder höher benötigt"))
  17.   (set #askdir1 (cat "Wohin möchten Sie MEAutoStart installieren?\n"
  18.    "(Dort wird dann eine neue Schubalde angelegt!)"))
  19.   (set #fragetext (cat "Möchten Sie das Programm auch in die \n"
  20.    " WBStartup kopieren?"))
  21.   (set #ja (cat "Ja"))
  22.   (set #nein (cat "Nein"))
  23.   (set #confirmt (cat "Was möchten Sie installieren?"))
  24.   (set #fragetextL (cat "Welche Sprachen möchten Sie installiern?"))
  25.   (set #fragestart (cat "Möchten Sie MEAutoStart starten?"))
  26.   (set #fragecon (cat "Möchten Sie die alten NamenFiles convertieren?"))
  27.   (set #fragedel (cat "Möchten Sie die alten NamenFiles löschen?"))
  28.  )
  29.  
  30.  (
  31.   (set #bad-kick (cat "Sorry, I need OS3.0 or higher"))
  32.   (set #askdir1 (cat "In which Drawer will you install MEAutoStart?\n"
  33.   "(A new Drawer will be create!)"))
  34.   (set #fragetext (cat "Should I copy the Program to WBStartup?"))
  35.   (set #ja (cat "Yes"))
  36.   (set #nein (cat "No"))
  37.   (set #confirmt (cat "What should I install?"))
  38.   (set #fragetextL (cat "Which languages should I install?"))
  39.   (set #fragestart (cat "Would you start MEAutoStart?"))
  40.   (set #fragecon (cat "Would you convert the old namefiles?"))
  41.   (set #fragedel (cat "Would you delete the olf namefiles?"))
  42.  )
  43. )
  44.  
  45. ;**************************************************
  46.  
  47. (if (< (/ (getversion) 65536) 39)
  48.     (
  49.             (abort #bad-kick)
  50.     )
  51. )
  52.  
  53. ;**************************************************
  54.  
  55. (complete 0)
  56.  
  57. (
  58.     (set #name
  59.         (askdir
  60.             (prompt #askdir1)
  61.             (help @askdir-help)
  62.             (default "SYS:Tools")
  63.         )
  64.     )
  65.  
  66.     (set #Dname 
  67.         (tackon #name "MEAutoStart")
  68.     )
  69.  
  70.     (makedir #Dname
  71.         (infos)
  72.     )
  73.  
  74.     (copyfiles
  75.         (source "")
  76.         (dest #Dname)
  77.         (pattern "#?")
  78.         (prompt #confirmt)
  79.         (help @confirm-help)
  80.         (confirm)
  81.     )
  82. )
  83.  
  84. (complete 50)
  85.  
  86. ;**************************************************
  87.  
  88. (set name
  89.     (askoptions
  90.         (prompt #fragetext)
  91.         (help @askoptions-help)
  92.         (choices #Ja)
  93.         (default 1)
  94.     )
  95. )
  96.  
  97.  
  98. (if (= 1 name)
  99.     (
  100.         (copyfiles
  101.             (source "MEAutoStart")
  102.             (dest "sys:WBStartup")
  103.             (prompt #fragetext)
  104.             (help @confirm-help)
  105.             (confirm)
  106.          )
  107.  
  108.          (if (not (exists "sys:WBStartup/MEAutoStart.info"))
  109.              (
  110.                  (copyfiles
  111.                     (source "MEAutoStart.info")
  112.                     (dest "sys:WBStartup")
  113.                     (prompt #fragetext)
  114.                     (help @confirm-help)
  115.                     (confirm)
  116.                 )
  117.             )
  118.          )
  119.     )
  120. )
  121.  
  122.  
  123. (if (not (exists "envarc:MEAutoStart.Liste"))
  124.     (
  125.         (copyfiles
  126.             (source "MEAutoStart.Liste")
  127.             (dest "envarc:")
  128.         )
  129.     )
  130. )
  131.  
  132.  
  133. (if (exists "envarc:MEAutoStart.ja")
  134.     (
  135.          (set #startcon "MEASConvert")
  136.  
  137.         (set name
  138.             (askoptions
  139.                 (prompt #fragecon)
  140.                 (help @askoptions-help)
  141.                 (choices #Ja)
  142.                 (default 1)
  143.             )
  144.         )
  145.         (if (= 1 name)
  146.             (
  147.                 (run #startcon)
  148.             )
  149.         )
  150.         (set #delold1 "delete envarc:MEAutoStart.Ja")
  151.         (set #delold2 "delete envarc:MEAutoStart.nein")
  152.  
  153.         (set name
  154.             (askoptions
  155.                 (prompt #fragedel)
  156.                 (help @askoptions-help)
  157.                 (choices #Ja)
  158.                 (default 1)
  159.             )
  160.         )
  161.         (if (= 1 name)
  162.             (
  163.                 (run #delold1)
  164.                 (run #delold2)
  165.             )
  166.         )
  167.     )
  168. )
  169.  
  170. (complete 80)
  171.  
  172. ;**************************************************
  173.  
  174. (if (exists "sys:locale/catalogs")
  175.     (set #lang (askoptions
  176.         (prompt #fragetextL)
  177.         (help @askoptions-help)
  178.         (choices "Deutsch" "English")
  179.         (default 1))
  180.      )
  181. )
  182.  
  183. (set #n 0)
  184.  
  185. (while
  186.     (set #sprache
  187.          (select #n
  188.              "Deutsch"
  189.              "English"
  190.              ""
  191.          )
  192.      )
  193.     (
  194.      (if (IN #lang #n)
  195.         (
  196.          (set #catalog (tackon "Catalogs" (tackon #sprache "MEAutoStart.catalog")))
  197.          (set #destination (tackon "Locale:Catalogs/" #sprache))
  198.          (copyfiles
  199.             (source #catalog)
  200.             (dest #destination)
  201.             (prompt #confirmt)
  202.             (help @confirm-help)
  203.             (confirm))
  204.          (set #guide (tackon "Docs" (tackon #sprache "MEAutostart.guide")))
  205.          (set #destination (tackon "Help:" #sprache))
  206.           (copyfiles
  207.             (source #guide)
  208.             (dest #destination)
  209.             (prompt #confirmt)
  210.             (help @confirm-help)
  211.             (confirm)
  212.           )
  213.         
  214.         )
  215.      )
  216.      (set #n (+ #n 1))
  217.     )
  218. )
  219.  
  220. (
  221.     (set #startpf "run MEAutostart P")
  222.  
  223.     (set name
  224.         (askoptions
  225.             (prompt #fragestart)
  226.             (help @askoptions-help)
  227.             (choices #Ja)
  228.             (default 1)
  229.         )
  230.     )
  231.     (if (= 1 name)
  232.         (
  233.             (run #startpf)
  234.         )
  235.     )
  236. )
  237.  
  238. (complete 100)
  239.